package com.team2.shared;

import android.os.Parcel;
import android.os.Parcelable;

public class Direction implements Parcelable {
	
	private String directionDesc;
	private String distance;
	
	public Direction(){
		
	}

	public String getDirectionDesc() {
		return directionDesc;
	}

	public void setDirectionDesc(String directionDesc) {
		this.directionDesc = directionDesc;
	}

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(directionDesc);
		dest.writeString(distance);
		
	}
	
	public static final Parcelable.Creator<Direction> CREATOR = new Parcelable.Creator<Direction>() {
		public Direction createFromParcel(Parcel in) {
			return new Direction(in);
		}

		public Direction[] newArray(int size) {
			return new Direction[size];
		}
	};

	private Direction(Parcel in) {

		directionDesc =in.readString();
		distance =in.readString();

	}

}
